#ifndef MYTCPSOCKETTOALL_H
#define MYTCPSOCKETTOALL_H

#include "mytcpsocket.h"

class MyTcpSocketToAll : public MyTcpSocket
{
    Q_OBJECT
public:
    explicit MyTcpSocketToAll(QObject *parent = nullptr);

signals:
    void sendDataToIdentity(int identity,QByteArray data);

public slots:
    void sendDataToIdentitySlot(int identity,QByteArray data);

protected:
    virtual void handleFrame(const QJsonObject &obj);
    void handleIdentityFrame(const QJsonObject &obj);
    int identity=-1;
};

#endif // MYTCPSOCKETTOALL_H
